package com.party.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.party.domain.Collect;
import com.party.domain.Custom;
import com.party.domain.Orders;

public interface ShoppingService 
{
	//增加商品数据
	public int addOrder(int uid);
	
	//增加商品详情数据
	public void addOrderDetail(int orders_id,int product_id,int product_number);

	//增加商品收藏
	public boolean addCollect(Collect collect);
	
	//增加定制服务
	public void addCustom(Custom custom);
	
	
	
	//按id删除订单
	public void deleteOrder(int oid) throws Exception ;
	//按id删除订单详情
	public void deleteOrderDetail(int oid) throws Exception ;
	
	public void deleteCollect(int coid) throws Exception ;
	
	//按id删除定制服务
	public void deleteCustom(int cuid) throws Exception ;

	//按收藏id获取收藏信息
	public Collect findByCoidProdoct(int coid) throws Exception;
	
	//按用户id获取所有收藏
	public List<Collect> fidByUidProduct(int uid,int page,int size);
	
	//按用户id获取所有用户订单
	public List<Orders> findByUidOrders(int uid,int page,int size) throws Exception;
	
	public Orders fidByOidOrders(int oid) throws Exception;
	
	//查询用户所有未支付订单
	public List<Orders> findByNoStateOrders(int uid,int page,int size) throws Exception;
	
	//分页查询所有定制服务
	public List<Custom> findAllCustom(int page,int size);
	//id查询定制服务
	public Custom findIdCustom(int cuid) throws Exception;
	
	//按手机号查询所有定制服务
	public List<Custom> findPhoneCustom(String phone,int page,int size);



}
